package com.fresh.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.fresh.dao.ShopDao;

import com.fresh.entity.ShopEntity;

import com.fresh.service.IShopService;


@Transactional
@Service("shopService")
public class ShopServiceImpl implements IShopService {

	@Resource
	private ShopDao shopDao;
	
	/**
	 * @param 获取已用条数
	 * @param gmc
	 * @param shopId 
	 * @return
	 */
	public ShopEntity getShopSearchNumber(String Id){
		
		if(Id!=null){
			System.out.println(shopDao.getShop(Id)+"-----id");
			return  shopDao.getShop(Id);
		}
		
		return null;
		
	}
}
